'use strict';

(function (DFHelper, exec, _) {

  function df(options) {

    if (_.isFunction(options) || ! _.isObject(options)) {
      options = {};
    }

    return DFHelper.parse(exec('/bin/df',['-kP'], []).stdout.toString(), options);
  }

  // df.Helper = DFHelper;

  module.exports.df  = df;

}(
  require('./helper/DFHelper'),
  require('child_process').spawnSync,
  require('underscore')
  )
);